<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+
request.getServerPort()+path+"/";
out.print(basePath);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta charset="UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="back/css/add.css">




<script type="text/javascript" src="back/js/jquery-1.12.4.min.js"></script>
<script type="text/javascript" src="back/js/ajaxfileupload.js"></script>
<script type="text/javascript" src="back/js/upload.js">
</script>






</head>
<body>

 <section class="addContent">
  <div class="addInfo">
   <div class="addDetail"><!-- 点击submit按钮后，会将form中包含的全部标签的值发送到action对应的url -->
   
   
   
   <div class="upload">
    <div id="head"><img class="uploadImg" src=""/></div>
    <!-- enctype="multipart/form-data" 可以将数据分成多部分上传 -->
    <form enctype="multipart/form-data" method="post" name="fileinfo">
      <input type="file" id="file" class="file" name="file"><!-- type file固定类型 -->
      <input id="upload" type="button" value="上传">
      <input type="hidden" class="subfolder" value="head">
    </form>
  </div>
  
  
  
  
  
  
  
   
   <form action="student/add" method="post">
    <fieldset>
     <legend>用户注册</legend>
     <label>学号</label><input type="text" name="sno" placeholder="请填写用户名" required>
     <span data-right-tip="用户名正确" data-error-tip="用户名不正确"></span>  
     <label>姓名</label><input type="text" name="name"  placeholder="请填写昵称">
     <label>密码</label><input type="password" name="pwd" placeholder="请填写密码">
     <label>确认密码</label><input type="password" name="repwd" placeholder="请填写确认密码">
     <label>身高</label><input type="number" name="high" placeholder="请填写身高">
     <label>生日</label><input type="date" name="birthday" placeholder="请填写用户名">
     <label>电话</label><input type="tel" name="homephone" placeholder="请填写电话" required>
     <input type="text" name="imgsrc" class="uploadimgsrc">
     <input id="addBtn" type="submit" value="注册">
    </fieldset>
    </form>
   </div>
   <div class="rightInfo"></div>
  </div>
  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 </section>
 <footer></footer>
</body>
</html>